﻿
#region Imports...
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NiSis.Web.UI;
#endregion

public partial class SshTipologiaSocietaEdit : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{		
		FormUtil.RedirectAfterInsertUpdate(FormView1, "SshTipologiaSocietaEdit.aspx?{0}", SshTipologiaSocietaDataSource);
		FormUtil.RedirectAfterAddNew(FormView1, "SshTipologiaSocietaEdit.aspx");
		FormUtil.RedirectAfterCancel(FormView1, "SshTipologiaSocieta.aspx");
		FormUtil.SetDefaultMode(FormView1, "IdTipologiaSocieta");
	}
	protected void GridViewSshNewRelazioniSocietarie1_SelectedIndexChanged(object sender, EventArgs e)
	{
		string urlParams = string.Format("CdStoricoMensileRete={0}&CdPool={1}&CdSocieta1={2}&CdSocieta2={3}", GridViewSshNewRelazioniSocietarie1.SelectedDataKey.Values[0], GridViewSshNewRelazioniSocietarie1.SelectedDataKey.Values[1], GridViewSshNewRelazioniSocietarie1.SelectedDataKey.Values[2], GridViewSshNewRelazioniSocietarie1.SelectedDataKey.Values[3]);
		Response.Redirect("SshNewRelazioniSocietarieEdit.aspx?" + urlParams, true);		
	}	
	protected void GridViewSshSocietaStoricoChain2_SelectedIndexChanged(object sender, EventArgs e)
	{
		string urlParams = string.Format("IdSocieta={0}", GridViewSshSocietaStoricoChain2.SelectedDataKey.Values[0]);
		Response.Redirect("SshSocietaStoricoChainEdit.aspx?" + urlParams, true);		
	}	
	protected void GridViewSshNewSocieta3_SelectedIndexChanged(object sender, EventArgs e)
	{
		string urlParams = string.Format("CdSocieta={0}", GridViewSshNewSocieta3.SelectedDataKey.Values[0]);
		Response.Redirect("SshNewSocietaEdit.aspx?" + urlParams, true);		
	}	
	protected void GridViewSshTraderPrecStorico4_SelectedIndexChanged(object sender, EventArgs e)
	{
		string urlParams = string.Format("IdTraderPrecStorico={0}", GridViewSshTraderPrecStorico4.SelectedDataKey.Values[0]);
		Response.Redirect("SshTraderPrecStoricoEdit.aspx?" + urlParams, true);		
	}	
}


